package com.dosen.api.third.party.cmp.model.overview;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @version V1.0
 * @author: guangcheng
 * @date: 2023/1/13 16:22
 * @description:
 */
@NoArgsConstructor
@Data
public class AllocationRate {

    /**
     * disk
     */
    @JSONField(name = "disk")
    public List<ParamPair> disk;
    /**
     * memory
     */
    @JSONField(name = "memory")
    public List<ParamPair> memory;
    /**
     * cpu
     */
    @JSONField(name = "cpu")
    public List<ParamPair> cpu;


    /**
     * MemoryDTO
     */
    @NoArgsConstructor
    @Data
    public static class ParamPair {
        /**
         * name
         */
        @JSONField(name = "name")
        public String name;
        /**
         * value
         */
        @JSONField(name = "value")
        public Double value;
    }
}

